<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>MathLib: Referencia del Archivo D:/Master Videojuegos ULL 09_10/Asignaturas/Prácticas Básicas/Practicas Test/PracticaBasica - Tema2/PracticaBasica/MathLib/Quaternion/Quaternion.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generado por Doxygen 1.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Página&nbsp;principal</span></a></li>
      <li><a href="annotated.html"><span>Clases</span></a></li>
      <li class="current"><a href="files.html"><span>Archivos</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Lista&nbsp;de&nbsp;archivos</span></a></li>
      <li><a href="globals.html"><span>Miembros&nbsp;de&nbsp;los&nbsp;ficheros</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Referencia del Archivo D:/Master Videojuegos ULL 09_10/Asignaturas/Prácticas Básicas/Practicas Test/PracticaBasica - Tema2/PracticaBasica/MathLib/Quaternion/Quaternion.h</h1><code>#include &quot;../Vec/VecLib.h&quot;</code><br/>
<code>#include &quot;../Matrix/MatrixLib.h&quot;</code><br/>

<p><a href="_quaternion_8h_source.html">Ir al código fuente de este archivo.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Clases</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structc_quaternion.html">cQuaternion</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Esta estructura representa un quaternion.  <a href="structc_quaternion.html#_details">Más...</a><br/></td></tr>
<tr><td colspan="2"><h2>Funciones</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structc_quaternion.html">cQuaternion</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_quaternion_8h.html#ae458840377029c340c82c49f4e378bd7">operator+</a> (const <a class="el" href="structc_quaternion.html">cQuaternion</a> &amp;first, const <a class="el" href="structc_quaternion.html">cQuaternion</a> &amp;second)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Suma dos quaterniones.  <a href="#ae458840377029c340c82c49f4e378bd7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structc_quaternion.html">cQuaternion</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_quaternion_8h.html#a2be46b0a210c7eabebf589da13cd758e">operator-</a> (const <a class="el" href="structc_quaternion.html">cQuaternion</a> &amp;first, const <a class="el" href="structc_quaternion.html">cQuaternion</a> &amp;second)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Resta dos quaterniones.  <a href="#a2be46b0a210c7eabebf589da13cd758e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structc_quaternion.html">cQuaternion</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_quaternion_8h.html#a49fd11d216ab76e6eeef904ba456dd3c">operator-</a> (const <a class="el" href="structc_quaternion.html">cQuaternion</a> &amp;quat)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Niega un quaternion.  <a href="#a49fd11d216ab76e6eeef904ba456dd3c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structc_quaternion.html">cQuaternion</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_quaternion_8h.html#a8f4a756fc6d4aaec46f865a67b517d53">operator*</a> (const <a class="el" href="structc_quaternion.html">cQuaternion</a> &amp;first, const <a class="el" href="structc_quaternion.html">cQuaternion</a> &amp;second)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Multiplica dos quaterniones.  <a href="#a8f4a756fc6d4aaec46f865a67b517d53"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structc_quaternion.html">cQuaternion</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_quaternion_8h.html#accf0513ea99797cf3af3a398e5172dcd">operator*</a> (const <a class="el" href="structc_quaternion.html">cQuaternion</a> &amp;quat, float scalar)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Multiplica un quaternion por un escalar.  <a href="#accf0513ea99797cf3af3a398e5172dcd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structc_quaternion.html">cQuaternion</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_quaternion_8h.html#a42ac348e81a2097e03bdd3e17785e072">operator*</a> (float scalar, const <a class="el" href="structc_quaternion.html">cQuaternion</a> &amp;quat)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Multiplica un quaternion por un escalar.  <a href="#a42ac348e81a2097e03bdd3e17785e072"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structc_quaternion.html">cQuaternion</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_quaternion_8h.html#ae920de22470bf0331a377e4697c59648">operator/</a> (const <a class="el" href="structc_quaternion.html">cQuaternion</a> &amp;quat, float scalar)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Divide un quaternion por un escalar.  <a href="#ae920de22470bf0331a377e4697c59648"></a><br/></td></tr>
</table>
<hr/><h2>Documentación de las funciones</h2>
<a class="anchor" id="a42ac348e81a2097e03bdd3e17785e072"></a><!-- doxytag: member="Quaternion.h::operator*" ref="a42ac348e81a2097e03bdd3e17785e072" args="(float scalar, const cQuaternion &amp;quat)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structc_quaternion.html">cQuaternion</a> operator* </td>
          <td>(</td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>scalar</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structc_quaternion.html">cQuaternion</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>quat</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Multiplica un quaternion por un escalar. </p>
<p>Multiplica un quaternion por un escalar </p>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>scalar</em>&nbsp;</td><td>Escalar </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>quat</em>&nbsp;</td><td>Quaternion </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Devuelve:</b></dt><dd>Devuelve el quaternion resultante </dd></dl>

<p>Definición en la línea <a class="el" href="_quaternion_8h_source.html#l00404">404</a> del archivo <a class="el" href="_quaternion_8h_source.html">Quaternion.h</a>.</p>

</div>
</div>
<a class="anchor" id="accf0513ea99797cf3af3a398e5172dcd"></a><!-- doxytag: member="Quaternion.h::operator*" ref="accf0513ea99797cf3af3a398e5172dcd" args="(const cQuaternion &amp;quat, float scalar)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structc_quaternion.html">cQuaternion</a> operator* </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structc_quaternion.html">cQuaternion</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>quat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>scalar</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Multiplica un quaternion por un escalar. </p>
<p>Multiplica un quaternion por un escalar </p>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>quat</em>&nbsp;</td><td>Quaternion </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>scalar</em>&nbsp;</td><td>Escalar </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Devuelve:</b></dt><dd>Devuelve el quaternion resultante </dd></dl>

<p>Definición en la línea <a class="el" href="_quaternion_8h_source.html#l00400">400</a> del archivo <a class="el" href="_quaternion_8h_source.html">Quaternion.h</a>.</p>

</div>
</div>
<a class="anchor" id="a8f4a756fc6d4aaec46f865a67b517d53"></a><!-- doxytag: member="Quaternion.h::operator*" ref="a8f4a756fc6d4aaec46f865a67b517d53" args="(const cQuaternion &amp;first, const cQuaternion &amp;second)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structc_quaternion.html">cQuaternion</a> operator* </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structc_quaternion.html">cQuaternion</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>first</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structc_quaternion.html">cQuaternion</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>second</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Multiplica dos quaterniones. </p>
<p>Multiplica dos quaterniones </p>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>first</em>&nbsp;</td><td>Primer Operando </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>second</em>&nbsp;</td><td>Segundo Operando </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Devuelve:</b></dt><dd>Devuelve el quaternion resultante </dd></dl>

<p>Definición en la línea <a class="el" href="_quaternion_8h_source.html#l00394">394</a> del archivo <a class="el" href="_quaternion_8h_source.html">Quaternion.h</a>.</p>

</div>
</div>
<a class="anchor" id="ae458840377029c340c82c49f4e378bd7"></a><!-- doxytag: member="Quaternion.h::operator+" ref="ae458840377029c340c82c49f4e378bd7" args="(const cQuaternion &amp;first, const cQuaternion &amp;second)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structc_quaternion.html">cQuaternion</a> operator+ </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structc_quaternion.html">cQuaternion</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>first</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structc_quaternion.html">cQuaternion</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>second</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Suma dos quaterniones. </p>
<p>Suma dos quaterniones </p>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>first</em>&nbsp;</td><td>Primer Operando </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>second</em>&nbsp;</td><td>Segundo Operando </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Devuelve:</b></dt><dd>Devuelve el quaternion resultante </dd></dl>

<p>Definición en la línea <a class="el" href="_quaternion_8h_source.html#l00382">382</a> del archivo <a class="el" href="_quaternion_8h_source.html">Quaternion.h</a>.</p>

</div>
</div>
<a class="anchor" id="a49fd11d216ab76e6eeef904ba456dd3c"></a><!-- doxytag: member="Quaternion.h::operator&#45;" ref="a49fd11d216ab76e6eeef904ba456dd3c" args="(const cQuaternion &amp;quat)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structc_quaternion.html">cQuaternion</a> operator- </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structc_quaternion.html">cQuaternion</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>quat</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Niega un quaternion. </p>
<p>Niega un quaternion </p>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>quat</em>&nbsp;</td><td>Operando </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Devuelve:</b></dt><dd>Devuelve el quaternion resultante </dd></dl>

<p>Definición en la línea <a class="el" href="_quaternion_8h_source.html#l00390">390</a> del archivo <a class="el" href="_quaternion_8h_source.html">Quaternion.h</a>.</p>

</div>
</div>
<a class="anchor" id="a2be46b0a210c7eabebf589da13cd758e"></a><!-- doxytag: member="Quaternion.h::operator&#45;" ref="a2be46b0a210c7eabebf589da13cd758e" args="(const cQuaternion &amp;first, const cQuaternion &amp;second)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structc_quaternion.html">cQuaternion</a> operator- </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structc_quaternion.html">cQuaternion</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>first</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structc_quaternion.html">cQuaternion</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>second</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Resta dos quaterniones. </p>
<p>Resta dos quaterniones </p>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>first</em>&nbsp;</td><td>Primer Operando </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>second</em>&nbsp;</td><td>Segundo Operando </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Devuelve:</b></dt><dd>Devuelve el quaternion resultante </dd></dl>

<p>Definición en la línea <a class="el" href="_quaternion_8h_source.html#l00386">386</a> del archivo <a class="el" href="_quaternion_8h_source.html">Quaternion.h</a>.</p>

</div>
</div>
<a class="anchor" id="ae920de22470bf0331a377e4697c59648"></a><!-- doxytag: member="Quaternion.h::operator/" ref="ae920de22470bf0331a377e4697c59648" args="(const cQuaternion &amp;quat, float scalar)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structc_quaternion.html">cQuaternion</a> operator/ </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structc_quaternion.html">cQuaternion</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>quat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>scalar</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Divide un quaternion por un escalar. </p>
<p>Divide un quaternion por un escalar </p>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>quat</em>&nbsp;</td><td>Quaternion </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>scalar</em>&nbsp;</td><td>Escalar </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Devuelve:</b></dt><dd>Devuelve el quaternion resultante </dd></dl>

<p>Definición en la línea <a class="el" href="_quaternion_8h_source.html#l00408">408</a> del archivo <a class="el" href="_quaternion_8h_source.html">Quaternion.h</a>.</p>

</div>
</div>
</div>
<hr class="footer"/><address style="text-align: right;"><small>Generado el Wed Oct 6 00:48:12 2010 para MathLib por&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>
